package com.lyw.GeoLocationClient.json;

import java.util.Arrays;

public class Poi {
    int id;
    double[] location;//lon, lat
    String city;
    String title;
    String tags;
    String address;
    int coord_type;
    int geotable_id;

    public Poi(double[] location) {
        this.location = location;
    }

    public Poi(double lon, double lat) {
        double[] lo = new double[]{lon, lat};
        this.location = lo;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String time) {
        create_time = time;
    }

    String create_time;
    String modify_time;

    public double[] getLocation() {
        return location;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getId() {
        return id;
    }

    public int getCoord_type() {
        return coord_type;
    }

    public String getTitle() {
        return title;
    }

    public String getTags() {
        return tags;
    }

    @Override
    public String toString() {
        return id + " " + title + " " + Arrays.toString(location) + " " + tags;
    }
}
